﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DXApplicationTangche.UC.订单.service;
using DXApplicationTangche.service;
using DevExpress.XtraGrid.Demos.util;
using DXApplicationTangche.DTO;
using static DXApplicationTangche.UC.门店下单.form.Frm订单一览;
using DXApplicationTangche.UC.门店下单.form.订单修改;
using DXApplicationTangche.UC.款式异常;
using mendian;
using DXApplicationTangche.UC.ImpUC;

namespace DXApplicationTangche.UC.订单
{
    public partial class Form订单一览新 : DevExpress.XtraEditors.XtraForm
    {
        private String shopId = "18";
        private String pageStart;
        private String pageSize;
        private Enum订单类别 enum订单类别 = Enum订单类别.销售订单;
        private XtraUserControl订单一览 xtraUserControl订单一览 = new XtraUserControl订单一览();
        public delegate void AddTabDataEvents(Form form);//定义委托
        public event AddTabDataEvents addTabDataEvents;//定义事件
        public Form订单一览新()
        {
            InitializeComponent();
            this.xtraUserControl订单一览.Dock = DockStyle.Fill;
            this.Controls.Add(this.xtraUserControl订单一览);
            this.xtraUserControl订单一览.addTabDataEvents += this.addTab;
        }
        public Form订单一览新(Enum订单类别 @enum)
        {
            InitializeComponent();
            this.xtraUserControl订单一览 = new XtraUserControl订单一览(@enum);
            this.xtraUserControl订单一览.Dock = DockStyle.Fill;
            this.Controls.Add(this.xtraUserControl订单一览);
        }

        private void addTab(Form form)
        {
            this.addTabDataEvents(form);
        }
        
    }
}